//
//  PurListInformationLastTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/10.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "PurListInformationLastTableViewCell.h"

@interface PurListInformationLastTableViewCell ()

@property(nonatomic,strong) GLGWLabel * companylabel;
@property(nonatomic,strong) GLGWLabel * adresslabel;

@end

@implementation PurListInformationLastTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        GLGWView * bankgroundView = [[GLGWView alloc] initWithInSuperView:self.contentView];
        bankgroundView.backgroundColor = [UIColor whiteColor];
        [bankgroundView setViewShadowWidth:3.0 theCornerRadius:3.0];
        [bankgroundView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(10));
            make.bottom.equalTo(self.contentView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(10));
        }];
        //
        self.companylabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:bankgroundView];
        self.companylabel.attributedText = [GLGWLabel bllChangeStr:@"公司名称  北京泽人合物资有限公司" changewithStr:@"北京泽人合物资有限公司" changeColoer:kColor_Rule_Black withFont:SYSTEMFONT(14)];
        [self.companylabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(bankgroundView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(bankgroundView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(20));
            make.right.equalTo(bankgroundView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        self.adresslabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:bankgroundView];
        self.adresslabel.attributedText = [GLGWLabel bllChangeStr:@"收货地址  北京市大兴区天河路2号，国储西区" changewithStr:@"北京市大兴区天河路2号，国储西区" changeColoer:kColor_Rule_Black withFont:SYSTEMFONT(14)];
        [self.adresslabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.equalTo(self.companylabel);
            make.top.equalTo(self.companylabel.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(10));
            make.bottom.equalTo(bankgroundView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(20));
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
